package com.graduate.framework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 存储系统内发送的消息通知
 * </p>
 *
 * @author 本郡主是喵
 * @since 2025-02-27
 */
@Getter
@Setter
@TableName("notifications")
@ApiModel(value = "Notifications对象", description = "存储系统内发送的消息通知")
public class Notifications implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("消息通知唯一标识")
    @TableId(value = "notification_id", type = IdType.AUTO)
    private Integer notificationId;

    @ApiModelProperty("发送时间")
    private LocalDateTime sendTime;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("接收者ID（关联用户表的用户ID）")
    private Integer receiverId;

    @ApiModelProperty("是否已读")
    private Boolean isRead;
}
